<?php

namespace Apps\AppApi\Method\Common;


use Apps\AppApi\Method\BaseMethod;

/**
 * 支付配置信息
 * @package Apps\AppApi\Method\Common
 */
class PayConfig extends BaseMethod
{
    public function run()
    {
        $config = include APP_COMMON_PATH . "base-config/pay.php";
        $data = [];
        foreach($config as $k=>$v) {
            $p = [
                'pay_type' => $k,
                'config' => $v
            ];
            $data[] = $p;
        }
        $this->setResult($data);
    }
}